package com.atguigu.gmall.item.vo;

import com.atguigu.gmall.product.entity.SkuInfo;
import com.atguigu.gmall.product.entity.SpuSaleAttr;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuDetailVo {
    // 1.分类信息
    private CategoryView categoryView;
    // 2.sku信息
    private SkuInfo skuInfo;
    // 3.实时价格
    private BigDecimal price;
    // 4.销售属性集合
    private List<SpuSaleAttr> spuSaleAttrList;
    // 5.每种sku组合
    private String valuesSkuJson;


    @NoArgsConstructor
    @Data
    public static class CategoryView {
        private Long category1Id;
        private String category1Name;
        private Long category2Id;
        private String category2Name;
        private Long category3Id;
        private String category3Name;
    }
}
